<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="format-detection" content="telephone=no,date=no,address=no,email=no">
    <title>财资企业知识客服</title>
    <link rel="stylesheet" href="ai-chat.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
    <div class="app-container">
        <div class="sidebar">
            <div class="brand">
                <h1>财资企业知识客服</h1>
                <p class="brand-desc">智能问答系统</p>
            </div>
            <div class="user-info">
                <i class="fas fa-user-circle"></i>
                <span>管理员</span>
                <button class="logout-btn" onclick="logout()">
                    <i class="fas fa-sign-out-alt"></i>
                    退出登录
                </button>
            </div>
        </div>
        
        <div class="main-content">
            <div class="chat-header">
                <div class="header-title">
                    <i class="fas fa-comments"></i>
                    <h2>财小资人工智能客服</h2>
                </div>
                <div class="header-info">
                    <span class="status online">
                        <i class="fas fa-circle"></i>
                        系统在线
                    </span>
                </div>
            </div>
            
            <div class="chat-messages" id="chatMessages">
                <!-- 欢迎消息 -->
                <div class="message ai-message">
                    <div class="message-header">
                        <img src="images/cz_title.jpg" class="avatar" alt="财小资">
                        <span class="agent-name">财小资(财小资)</span>
                    </div>
                    <div class="message-content">
                        <div class="message-text">
                            <p>您好！我是财资企业知识助手，请问有什么可以帮您？</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="chat-input-container">
                <div class="input-wrapper">
                    <textarea 
                        id="messageInput" 
                        placeholder="请输入您的问题..." 
                        rows="3"
                    ></textarea>
                    <button id="sendButton">
                        <i class="fas fa-paper-plane"></i>
                        发送
                    </button>
                </div>
                <div class="input-tips">
                    按 Enter 发送消息，Shift + Enter 换行
                </div>
            </div>
        </div>
    </div>
    <script src="ai-chat.js"></script>
</body>
</html> 